package com.atguigu.service;

import com.atguigu.pojo.User;

import java.util.List;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-01-20
 * @Description:
 * @Version: 1.0
 */
public interface UserService {
    /**
     * @Author:liuaojun
     * @Date:2025-01-20 10:16
     * @Description:新增用户
     */
    public void addUser(User user);

    /**
     * @Author:liuaojun
     * @Date:2025-01-20 10:16
     * @Description:修改用户
     */
    public void updateUser(User user);

    /**
     * @Author:liuaojun
     * @Date:2025-01-20 10:17
     * @Description:通过Id查询用户
     */
    public User findUserById(int id);

    /**
     * @Author:liuaojun
     * @Date:2025-01-20 10:18
     * @Description:查询所有用户
     */
    public List<User> findUser();

    /**
     * @Author:liuaojun
     * @Date:2025-01-20 10:19
     * @Description:根据ID删除用户
     */
    public void deleteUserById(int id);
}
